//
//  RW_SongModel.h
//  SleepApp
//
//  Created by MAC on 2021/3/25.
//  Copyright © 2021 RiceWang. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface RW_SongModel : NSObject
#pragma mark -- 标准模型
/** 歌曲ID */
@property (nonatomic,copy) NSString *xid;
/** 描述 */
@property (nonatomic,copy) NSString *desc;
/** 地址 */
@property (nonatomic,copy) NSString *url;
/** 类型 */
@property (nonatomic,copy) NSString *type;
/** 名称 */
@property (nonatomic,copy) NSString *name;
/** 封面 */
@property (nonatomic,copy) NSString *cover;
/** 来源或者作者 */
@property (nonatomic,copy) NSString *fromAuthor;



#pragma mark -- 网络请求
/** 下载音频文件 */
-(void)downloadAudioProgress:(void(^)(float progress))progress
                     success:(void(^)(NSString *filePath))success
                        fail:(void(^)(NSError *error))fail;
/** 歌曲详情获取 */
+ (FBLPromise<RW_SongModel *> *)getSongInfoId:(NSString *)songId;

@end

NS_ASSUME_NONNULL_END
